package com.achartengine.test.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.TextView;

import com.achartengine.test.R;

/**
 * Author: dengdayi
 * Date:2016/1/11 16:04
 * Description:
 */
public abstract class BaseActivity extends AppCompatActivity {
    protected TextView mTvTitle;

    protected FrameLayout mFrameLayout;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_base_layout);

        mTvTitle = (TextView) findViewById(R.id.tv_title);
        mFrameLayout = (FrameLayout) findViewById(R.id.fl_layout);


        findViewById(R.id.iv_left_back).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

        onCreateBase(savedInstanceState);
    }

    public abstract void onCreateBase(Bundle savedInstanceState);
}
